﻿@model Gfw.Web.Models.Users.UserLoginModel
@{
    ViewBag.Title = "";
    Layout = "~/Views/Shared/_UserLogin.cshtml";
}
<script>
    $(function () {
        $("#valiCode").bind("click", function () {
            this.src = "/Validate?time=" + (new Date()).getTime();
        });
    });
</script>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{

   <div id="login_logo">
        <!--   网站登录框开始    -->
        <div id="login_input">
            <ul>
                <li>
                    
                    @Html.EditorFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </li>
                <li>
                    @Html.EditorFor(m => m.Password)   
                    @Html.ValidationMessageFor(m => m.Password)
                </li>
                <li>
                    @Html.EditorFor(m => m.VerifyCode)
                    <img src="/Validate"  align="absmiddle" id="valiCode" style="cursor: pointer;" alt="验证码" />     
                    @Html.ValidationMessageFor(m => m.VerifyCode)
                </li>
                <li>
                    <input type="submit" value="" class="ulogin" />
                </li>
            </ul>
               @Html.ValidationSummary(true)
        </div>
        <!--   网站登录框结束    -->
    </div>
}

